sudo apt -y install nginx
sudo systemctl enable nginx
if [[ ! -z $1 ]] && [[ -d $1 ]] && [[ -z ${unline_path} ]]
then
PREHOME=$1
elif [[ ! -z ${unline_path} ]]
then
PREHOME=${unline_path}
else
PREHOME=${HOME}"/unline"
fi
sudo cp -rvf ${PREHOME}/nginx/* /etc/nginx

sudo cat /etc/nginx/nginx.conf | grep -E "include\s+/etc/nginx/custom/zxhtom.conf"
if [[ $? -eq 1 ]]
then

  line=$(sudo cat /etc/nginx/nginx.conf | grep -nE "include /etc/nginx/sites-enabled/*" | awk -F '[ :]+' '{print $1}')
  sudo sed -i ''"${line}"'a\  include /etc/nginx/custom/zxhtom.conf;' /etc/nginx/nginx.conf
fi
